package com.ruoyi.community.service;

import java.util.List;
import com.ruoyi.community.domain.HeartElderlyInfo;
import org.springframework.stereotype.Service;

/**
 * 老人信息Service接口
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
@Service
public interface IHeartElderlyInfoService 
{
    /**
     * 查询老人信息
     * 
     * @param elderlyid 老人信息ID
     * @return 老人信息
     */
    public HeartElderlyInfo selectHeartElderlyInfoById(Long elderlyid);

    /**
     * 查询老人信息列表
     * 
     * @param heartElderlyInfo 老人信息
     * @return 老人信息集合
     */
    public List<HeartElderlyInfo> selectHeartElderlyInfoList(HeartElderlyInfo heartElderlyInfo);

    /**
     * 新增老人信息
     * 
     * @param heartElderlyInfo 老人信息
     * @return 结果
     */
    public int insertHeartElderlyInfo(HeartElderlyInfo heartElderlyInfo);

    /**
     * 修改老人信息
     * 
     * @param heartElderlyInfo 老人信息
     * @return 结果
     */
    public int updateHeartElderlyInfo(HeartElderlyInfo heartElderlyInfo);

    /**
     * 批量删除老人信息
     * 
     * @param elderlyids 需要删除的老人信息ID
     * @return 结果
     */
    public int deleteHeartElderlyInfoByIds(Long[] elderlyids);

    /**
     * 删除老人信息信息
     * 
     * @param elderlyid 老人信息ID
     * @return 结果
     */
    public int deleteHeartElderlyInfoById(Long elderlyid);

    public int countElderlyAge60and65();
    public int countElderlyAge66and70();
    public int countElderlyAge71and75();
    public int countElderlyAge76and80();
    public int countElderlyAge81and85();
    public int countElderlyAgeUp86();
    public int countElderlyWoman();
    public int countElderlyMan();
}
